<?php
class Staticizer_Index_DM extends Staticizer
{
    public function Build($param=NULL)
    {
        #获取数据
        $data=DB::GetRows('select ID,Title,Location_Cover,Location_Online,Location_Download from DM order by Datetime desc limit 0,1');

        #绑定数据
        View::Assign('DM',$data[0]);

        #生成静态
        $this->Save('index/dm.html',View::Fetch('index/dm.tpl'));
    }
}
?>